package com.headingdata.define;

public class ArrayDemo2 {
    public static void main(String[] args) {
        int[] arr = new int[3];
        arr[1] = 20;
        System.out.println(arr);
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);

        byte[] arr1 = new byte[80];
        System.out.println(arr1[0]);
        System.out.println(arr1[79]);

        short[] arr2 = new short[100];
        System.out.println(arr2[0]);
        System.out.println(arr2[99]);

        char[] arr3 = new char[50];
        System.out.println(arr3[0]);
        System.out.println(arr3[49]);

        double[] arr4 = new double[80];
        System.out.println(arr4[0]);
        System.out.println(arr4[79]);

        String[] arr5 = new String[50];
        System.out.println(arr5[0]);
        System.out.println(arr5[49]);

        boolean[] flags = new boolean[80];
        System.out.println(flags[0]);
        System.out.println(flags[79]);

    }
}
